package cn.gson.oasys.service.AoaDiscussList;

import cn.gson.oasys.mapper.AoaReplyListMapper;
import cn.gson.oasys.pojo.AoaReplyList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2020/12/4.
 */
@Service
public class AoaReplyListService {
    @Resource
    private AoaReplyListMapper mapper;

    //根据discussId获取相对应的回复列表 王义
    public List<AoaReplyList> getAoaReplyListByDicussId(Long discussId){
        return mapper.selectAoaReplyListByDicussId(discussId);
    }

    //根据用户名查询回复列表  王义
    public List<AoaReplyList> selectAllReplyByUserName(String userName){
        return mapper.selectAllReplyByUserName(userName);
    }
}
